﻿<!--#include virtual="/Common/Config.asp" -->
<!--#include virtual="/Common/conn.asp" -->
<!--#include virtual="/2010admin/Check_IsLogin.asp" -->
<!--#include virtual="/Common/Function.asp" -->
<!--#include file="Spot_Inc.asp" -->
<%
If Request.ServerVariables ("Request_Method")="POST" Then
	Call Spot_Info_Action()	
Else
	
	Call Get_Spot_Info("Spot_ID")
	If Spot_IsTop="" Then Spot_IsTop="0"
	If Spot_IsHide="" Then Spot_IsHide="0"


End If
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="/2010admin/css/default.css" type="text/css" rel="stylesheet">
<title><%=web_title%></title>
<script language="javascript" src="/2010admin/js/validator.js"></script>
<script type="text/javascript" src="/2010admin/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/2010admin/ckfinder/ckfinder.js"></script>
</head>
<body >
<table border="0" width="100%" cellSpacing="0" cellPadding="0">
  <tr>
    <td width="100%" height="5"></td>
  </tr>
  <tr>
    <td width="100%" align="center">
      <table border="0" width="98%" cellSpacing="0" cellPadding="0">
        <tr>
          <td width="*" align="center" valign="top">
            <table border="0" width="100%" cellSpacing="0" cellPadding="0" class="lrbtline">
              <tr>
                <td width="100%" height="25" class="tbtop">管理导航</td>
              </tr>
              <tr>
                <td width="100%" align="center">
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0">
                    <tr>
                      <td width="100%" height="5"></td>
                    </tr>
                  </table>
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0">
                    <tr>
                      <td width="100%" height="20">&nbsp;<img src="/2010admin/images/sico.gif" border="0">&nbsp;<span id="userlist"><a href="Spot_Query.asp">景点列表</a></span>&nbsp;<img src="/2010admin/images/sico.gif" border="0">&nbsp;<span id="useradd"><a href="Spot_Add.asp">增加新的景点</a></span></td>
                    </tr>
                    <tr>
                      <td width="100%" height="5"></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <table border="0" width="100%" cellSpacing="0" cellPadding="0">
              <tr>
                <td width="100%" height="5"></td>
              </tr>
            </table>
            <table border="0" width="100%" cellSpacing="0" cellPadding="0" class="lrbtline">
              <tr>
                <td width="100%" height="25" class="tbtop">修改的景点信息</td>
              </tr>
              <tr>
                <td width="100%" align="center">
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0">
                    <tr>
                      <td width="100%" height="5"></td>
                    </tr>
                  </table>
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0" class="tablesh">
                  <form action="" method="post" name="form" onSubmit="return Validator.Validate(this, 2)">
                    <tr>
                      <td width="80" height="25">景点名称</td>
                      <td width="*"><input name="Spot_Name" type="text" id="Spot_Name" value="<%=Spot_Name%>" size="60" dtype="Limit" min="2" max="100" dmsg="景点名称必须在2-100个字符间"></td>
                    </tr>
                    <tr>
                      <td width="80" height="25">景点图片</td>
                      <td width="*"><input type="text" name="Spot_Pic"  value="<%=Spot_Pic%>" size="60" ><iframe id=d_file frameborder=0 src="/2010admin/common/file_upload.asp?change_field=Spot_Pic" width="300" height="40" scrolling=no></iframe>                      </td>
                    </tr>
 			  <tr>
                      <td width="80" height="25">景点区域</td>
                      <td width="*"><% Call Spot_Area_List(Spot_Area) %></td>
                    </tr>
      
                    
                    <tr>
                      <td height="25">景点城市</td>
                      <td>					  
					  <% Call Spot_City_List(Spot_City) %>
                    </tr>
                    <tr>
                      <td height="25">景点摘要</td>
                      <td><textarea name="Spot_ZY" cols="65" rows="5" id="Spot_ZY" dtype="Limit" min="0" max="200" dmsg="景点摘要内容必须在0-200个字符间"><%=Spot_ZY%></textarea></td>
                    </tr>

                    <tr>
                      <td height="25">景点介绍</td>
                      <td>
						<textarea name="Spot_Desc" class="ckeditor" ><%=Spot_Desc%></textarea>

					  </td>
                    </tr>

                    <tr>
                      <td height="25">景点门票</td>
                      <td><input name="Spot_Ticket_Price" type="text" id="Spot_Ticket_Price" value="<%=Spot_Ticket_Price%>" size="10" dtype="Integer" min="0" 0 dmsg="景点门票必须是整数">
                        只能输入整数值</td>
                    </tr>
					<tr>
                      <td width="80" height="25">景点开放时间</td>
                      <td width="*"><input name="Spot_Open_Time" type="text" id="Spot_Open_Time" value="<%=Spot_Open_Time%>" size="60" dtype="Limit" min="2" max="50" dmsg="景点开放时间必须在2-50个字符间"></td>
                    </tr>	
					
<tr>
                      <td width="80" height="25">景点地图坐标</td>
                      <td width="*"><input name="Spot_Coordinate" type="text" value="<%=Spot_Coordinate%>" size="20" dtype="Limit" min="0" max="20" dmsg="景点地图坐标不能超过20个字符" >
                      经度和纬度以英文|分隔</td>
                    </tr>

                   <tr>
                      <td width="80" height="25">地址</td>
                      <td width="*"><input name="Spot_Address" type="text" value="<%=Spot_Address%>" size="60" dtype="Limit" min="2" max="100" dmsg="景点地址必须在2-100个字符间"></td>
                    </tr>

                    <tr>
                      <td width="80" height="25">电话</td>
                      <td width="*"><input name="Spot_Tel" type="text" value="<%=Spot_Tel%>" size="60" dtype="Limit" min="0" max="20" dmsg="电话必须在2-20个字符间"></td>
                    </tr>
					
                    <tr>
                      <td width="80" height="25">传真</td>
                      <td width="*"><input name="Spot_Fax" type="text" value="<%=Spot_Fax%>" size="60" dtype="Limit" min="0" max="20" dmsg="传真必须在2-20个字符间"></td>
                    </tr>


                    <tr>
                      <td width="80" height="25">网址</td>
                      <td width="*"><input name="Spot_Url" type="text" value="<%=Spot_Url%>" size="60" dtype="Limit" min="0" max="50" dmsg="网址必须在2-50个字符间"></td>
                    </tr>


                     <tr>
                      <td height="25">景点交通</td>
                      <td>
					  <textarea name="Spot_Traffic" cols="65" rows="10" id="Spot_Traffic" dtype="Limit" min="0" max="500" dmsg="景点交通指引必须在2-500个字符间"><%=Spot_Traffic%></textarea>
					  </td>
                    </tr> 


                     <tr>
                      <td height="25">是否置顶</td>
                      <td><input name="Spot_IsTop" type="radio" class="radio" value="1"  <%=GetChecked(Spot_IsTop,"1")%>>
                        是&nbsp;<input type="radio" class="radio" name="Spot_IsTop" value="0" <%=GetChecked(Spot_IsTop,"0")%>>
                        否</td>
                    </tr>

		             <tr>
                      <td height="25">是否隐藏</td>
                      <td><input name="Spot_IsHide" type="radio" class="radio" value="1"  <%=GetChecked(Spot_IsHide,"1")%>>
                        是&nbsp;<input type="radio" class="radio" name="Spot_IsHide" value="0" <%=GetChecked(Spot_IsHide,"0")%> >
                        否</td>
                    </tr>

                  <tr>
                      <td height="25">&nbsp;</td>
                      <td><input type="submit" name="submit" value="提交" class="button">&nbsp;<input type="reset" name="reset" value="取消" class="button">
                        <input name="Spot_ID" type="hidden" id="Spot_ID" value="<%=Spot_ID%>"></td>
                    </tr>
                  </form>
                  </table>
                  <table border="0" width="98%" cellSpacing="0" cellPadding="0">
                    <tr>
                      <td width="100%" height="5"></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td width="100%" height="5"></td>
  </tr>
</table>
</body>
</html>

<%
Call conn_close()
%>
